package controller

import (
	"ginfast/pkg/ginx"
)

func init() {
	ginx.Register("/", func(r *ginx.RouterGroup) {
		DbInit{}.Routers(r.Group("/dbInit"))
	})
	ginx.RegisterAuth("/", func(r *ginx.RouterGroup) {
		r.POST("/upload", UploadPicHandler)
		Dashboard{}.Routers(r.Group("/dashboard"))
	})
}
